<template>
  <div>
    <button @click="sendStudentName">给Student组件发送数据</button>
  </div>
</template>

<script>
export default {
  name: 'School',

  data() {
    return {
      name:"尚硅谷"
    };
  },

  methods: {
    sendStudentName(){
      this.$bus.$emit('getSchool', this.name);
    }
  },
};
</script>